/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ps.server.classes;

/**
 *
 * @author Ricardo
 */
public class addresses {

    private String id;
    private String id_customer;
    private String id_manufacturer;
    private String id_supplier;
    private String id_country;
    private String id_state;
    private String alias;
    private String company;
    private String lastname;
    private String firstname;
    private String address1;
    private String address2;
    private String postcode;
    private String city;
    private String other;
    private String phone;
    private String phone_mobile;
    private String dni;
    private String vat_number;
    private String deleted;
    private int colunm = 20;

    public int getColunm() {
        return colunm;
    }

    public String getAddress1() {
        return address1;
    }

    public void setAddress1(String address1) {
        this.address1 = address1;
    }

    public String getAddress2() {
        return address2;
    }

    public void setAddress2(String address2) {
        this.address2 = address2;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getDeleted() {
        return deleted;
    }

    public void setDeleted(String deleted) {
        this.deleted = deleted;
    }

    public String getDni() {
        return dni;
    }

    public void setDni(String dni) {
        this.dni = dni;
    }

    public String getFirstname() {
        return firstname;
    }

    public void setFirstname(String firstname) {
        this.firstname = firstname;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId_country() {
        return id_country;
    }

    public void setId_country(String id_country) {
        this.id_country = id_country;
    }

    public String getId_customer() {
        return id_customer;
    }

    public void setId_customer(String id_customer) {
        this.id_customer = id_customer;
    }

    public String getId_manufacturer() {
        return id_manufacturer;
    }

    public void setId_manufacturer(String id_manufacturer) {
        this.id_manufacturer = id_manufacturer;
    }

    public String getId_state() {
        return id_state;
    }

    public void setId_state(String id_state) {
        this.id_state = id_state;
    }

    public String getId_supplier() {
        return id_supplier;
    }

    public void setId_supplier(String id_supplier) {
        this.id_supplier = id_supplier;
    }

    public String getLastname() {
        return lastname;
    }

    public void setLastname(String lastname) {
        this.lastname = lastname;
    }

    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone_mobile() {
        return phone_mobile;
    }

    public void setPhone_mobile(String phone_mobile) {
        this.phone_mobile = phone_mobile;
    }

    public String getPostcode() {
        return postcode;
    }

    public void setPostcode(String postcode) {
        this.postcode = postcode;
    }

    public String getVat_number() {
        return vat_number;
    }

    public void setVat_number(String vat_number) {
        this.vat_number = vat_number;
    }

    public String toXML() {
        String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
                + "<prestashop xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n"
                + "<address>\n"
                + "<id>" + this.getId() + "</id>\n"
                + "<id_customer>" + this.getId_customer() + "</id_customer>\n"
                + "<id_manufacturer>" + this.getId_manufacturer() + "</id_manufacturer>\n"
                + "<id_supplier>" + this.getId_supplier() + "</id_supplier>\n"
                + "<id_country>" + this.getId_country() + "</id_country>\n"
                + "<id_state>" + this.getId_state() + "</id_state>\n"
                + "<alias>" + this.getAlias() + "</alias>\n"
                + "<company>" + this.getCompany() + "</company>\n"
                + "<lastname>" + this.getLastname() + "</lastname>\n"
                + "<firstname>" + this.getFirstname() + "</firstname>\n"
                + "<address1>" + this.getAddress1() + "</address1>\n"
                + "<address2>" + this.getAddress2() + "</address2>\n"
                + "<postcode>" + this.getPostcode() + "</postcode>\n"
                + "<city>" + this.getCity() + "</city>\n"
                + "<other>" + this.getOther() + "</other>\n"
                + "<phone>" + this.getPhone() + "</phone>\n"
                + "<phone_mobile>" + this.getPhone_mobile() + "</phone_mobile>\n"
                + "<dni>" + this.getDni() + "</dni>\n"
                + "<vat_number>" + this.getVat_number() + "</vat_number>\n"
                + "<deleted>" + this.getDeleted() + "</deleted>\n"
                + "</address>\n"
                + "</prestashop>";
        return xml;
    }

    public String[] GetMetaData() {
        return new String[]{
                    "id",
                    "id_customer",
                    "id_manufacturer",
                    "id_supplier",
                    "id_country",
                    "id_state",
                    "alias",
                    "company",
                    "lastname",
                    "firstname",
                    "address1",
                    "address2",
                    "postcode",
                    "city",
                    "other",
                    "phone",
                    "phone_mobile",
                    "dni",
                    "vat_number",
                    "deleted"};
    }
}
